package com.fy.market.persistent.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;

import java.sql.Timestamp;
import java.util.Date;

/**
 * 策略奖品规则表
 * @author fwq
 * @date 2025-09-03
 * @desc 策略奖品规则表
 * @TableName: strategy_award_rule
 * @Package: com.fy.market.persistent.po
 */
@Data
@TableName("strategy_award_rule")
public class StrategyAwardRule {
    /**
     * 自增ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 抽奖策略ID
     */
    @TableField(value = "strategy_id")
    private Integer strategyId;

    /**
     * 策略奖品ID【规则类型为策略，则不需要奖品ID】
     */
    @TableField(value = "strategy_award_id")
    private Integer strategyAwardId;

    /**
     * 规则模型ID
     */
    @TableField(value = "rule_model_id")
    private Integer ruleModelId;

    /**
     * 解锁次数
     */
    @TableField(value = "award_unlock_count")
    private Integer awardUnlockCount;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Timestamp updateTime;

    /**
     * 状态：1正常 0禁用
     */
    @TableField(value = "status")
    private Integer status;
}